<template>
  <div
    class="baojinbi"
    v-show="showBaojinbi"
    :style="{
      '--5cac1e84': `url(/images/activity/clipdoll/btn.png)`,
      '--5cac1e85': `url(/images/activity/clipdoll/zhongjiang.png)`,
    }"
    @click="emit('changeBaojinbi', false)"
  >
    <canvas width="419" height="801"></canvas>
    <NuxtImg class="gif" src="/images/activity/clipdoll/guangxiao.png" alt="" />
    <div class="kuang">
      <NuxtImg class="qius" src="/images/activity/clipdoll/01.png" alt="" />
      <div>
        <NuxtImg src="/images/activity/clipdoll/coip.png" alt="" />
        R$ 123456
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
const props = defineProps(["showBaojinbi"]);
const emit = defineEmits(["changeBaojinbi"]);
</script>

<style scoped lang="scss">
.baojinbi {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  position: fixed;
  overflow: hidden;
  background-color: #0009;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
canvas {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
@keyframes breathe-02849ed6 {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes breathe2-02849ed6 {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}
.baojinbi .gif {
  width: 12rem;
  margin-top: -3.4rem;
  animation: breathe2-02849ed6 1s ease-in-out infinite;
}
.baojinbi .kuang {
  width: 7rem;
  height: 5.83rem;
  background-image: var(--5cac1e85);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-top: 1.5rem;
  box-sizing: border-box;
  margin-top: -4rem;
  animation: breathe-02849ed6 1s ease-in-out infinite;
  z-index: 2;
  color: #fff;
}
.baojinbi .kuang .qius {
  width: 2rem;
  height: 2rem;
}
.baojinbi .kuang div {
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.6rem;
}
.baojinbi .kuang div img {
  width: 0.88rem;
  margin-right: 0.2rem;
}
</style>
